package ae.pcfc.cldos.online.common.etksdb.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import ae.pcfc.cldos.online.common.domain.BaseEntity;

/**
 * AppMetaData entity. @author Mohtisham.Salahria
 */
@Entity
@Table(name = "T_ETKS_APP_META_DATA", schema = "ETKS_ONLINE_DBA")
@SequenceGenerator(name = "SQ_ETKS_APP_ID", sequenceName = "SQ_ETKS_APP_ID", initialValue = 1, allocationSize = 1)
public class EtksAppMetaData extends BaseEntity implements java.io.Serializable {

	public static final String ONLINE_APP_ID_PREFIX = "CLD_";
	public static final String CLIENT_REF_NO = "clientRefNo";
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// Fields

	private Long applicationId;
	private String wfIncidentId;
	private String wfInitiatedBy;
	private String wfStatus;
	private String applicationDate;	
	private String processCode;
	private String clientRefNo;
	private Long clientId;
	private Long userId;
	private String wfStatusEn;
	private String wfStatusAr;
	private String applicationLink;

	// Property accessors
	@Id
	@GeneratedValue( strategy = GenerationType.SEQUENCE, generator="SQ_ETKS_APP_ID")
	@Column(name = "APPLICATION_ID", nullable = false, length = 2000 )
	public Long getApplicationId() {
		return this.applicationId;
	}

	public void setApplicationId(Long applicationId) {
		this.applicationId = applicationId;
	}
	
	@Column(name = "WF_INCIDENT_ID", nullable = false, length = 50)
	public String getWfIncidentId() {
		return this.wfIncidentId;
	}

	public void setWfIncidentId(String wfIncidentId) {
		this.wfIncidentId = wfIncidentId;
	}
	
	@Column(name = "WF_INITIATED_BY", nullable = false, length = 50)
	public String getWfInitiatedBy() {
		return this.wfInitiatedBy;
	}

	public void setWfInitiatedBy(String wfInitiatedBy) {
		this.wfInitiatedBy = wfInitiatedBy;
	}

	@Column(name = "WF_STATUS", length = 50)
	public String getWfStatus() {
		return this.wfStatus;
	}

	public void setWfStatus(String wfStatus) {
		this.wfStatus = wfStatus;
	}
	
	@Column(name = "APPLICATION_DATE", nullable = false, length = 50)
	public String getApplicationDate() {
		return this.applicationDate;
	}

	public void setApplicationDate(String applicationDate) {
		this.applicationDate = applicationDate;
	}
	
	@Column(name = "PROCESS_CODE")
	public String getProcessCode() {
		return processCode;
	}
	
	public void setProcessCode(String processCode) {
		this.processCode = processCode;
	}

	@Column(name = "CLIENT_REF_NO", nullable = false, length = 50)
	public String getClientRefNo() {
		return clientRefNo;
	}

	public void setClientRefNo(String clientRefNo) {
		this.clientRefNo = clientRefNo;
	}
	
	
	@Column(name = "CLIENT_ID", precision = 11, scale = 0)
	public Long getClientId() {
		return clientId;
	}

	public void setClientId(Long clientId) {
		this.clientId = clientId;
	}
	
	@Column(name = "USER_ID", precision = 11, scale = 0)
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "APPLICATION_LINK", length = 600)
	public String getApplicationLink() {
		return applicationLink;
	}

	public void setApplicationLink(String applicationLink) {
		this.applicationLink = applicationLink;
	}
	
	@Column(name = "WF_STATUS_EN", length = 250)
	public String getWfStatusEn() {
		return wfStatusEn;
	}

	public void setWfStatusEn(String wfStatusEn) {
		this.wfStatusEn = wfStatusEn;
	}

	@Column(name = "WF_STATUS_AR", length = 250)
	public String getWfStatusAr() {
		return wfStatusAr;
	}

	public void setWfStatusAr(String wfStatusAr) {
		this.wfStatusAr = wfStatusAr;
	}


	
}